package com.common.constant;

/***
 * redis keys
 */
public class RedisKeys {


    /***
     * 全部温度数据
     * "device:{deviceNo}_all"
     */
    public static final String DEVICE_TEMP_DATA="device:%s_all";

    /***
     * 电池仓温度极值
     * "device:{deviceNo}_warehouse"
     */
    public static final String WAREHOUSE_TEMP_DATA="device:%s_warehouse";

    /***
     * 充电柜温度极值
     * "device:{deviceNo}_cabinet"
     */
    public static final String CABINET_TEMP_DATA="device:%s_cabinet";

    /***
     * 线槽温度温度极值
     * "device:{deviceNo}_line"
     */
    public static final String LINE_TEMP_DATA="device:%s_line";

    /***
     * 站点通道类型缓存 aisleCount-通道总数
     * cache:site-type-id:{aisleCount}
     */
    public static final String SITE_TYPE_CACHE="cache:site-type-id:%s";

    /**
     *  电池仓日报表极值缓存
     * "report:{deviceNo}_{时间}_warehouse"
     **/
    public static final String REPORT_WAREHOUSE="report:%s_%s_warehouse";

    /**
     * 充电柜日报表极值缓存
     * "report:{deviceNo}_{时间}_cabinet"
     **/
    public static final String REPORT_CABINET="report:%s_%s_cabinet";

    /**
     * 线槽日报表极值缓存
     * "report:{deviceNo}_{时间}_line"
     **/
    public static final String REPORT_LINE="report:%s_%s_line";

    /**
     * @Desc: redis key 站点电池仓各层平均温
     **/
    public static final String WAREHOUSE_AVG_LEVEL="warehouse_avg:%s";

    /**
     * @Desc: 全局配置 开启分析站点通道测温点温差异常
     **/
    public static final String GLOBAL_SITE_AISLE_DIFF_SWITCH="GLOBAL_SITE_AISLE_DIFF_SWITCH";

    /**
     * @Desc: 全局配置 站点通道测温点异常阈值
     **/
    public static final String GLOBAL_SITE_AISLE_DIFF_TEMP="GLOBAL_SITE_AISLE_DIFF_TEMP";

    /**
     * @Desc: 站点通道异常存储信息aisle_diff_alarm:{siteNo}_{aisleNo}
     **/
    public static final String SITE_AISLE_DIFF="aisle_diff_alarm:%s_%s";
}
